|
|
|
|
|
"SendText" can also be used for sending key events to mobile devices.
By key events we mean the physical button of the devices.
Scenario: In the following example, we will use the key event {HOME} to simulate pressing the home key of the device.
Lets say eribank app is launched on the device. As we execute the command SendText{HOME}, the device will go to the home screen of the device.
Parameters:
Text: Valid key event for the mobile device.
If you are writing scripts using a real external device, you can simulate key events using the SendText( Text) command.
Here, we are using {HOME} key event to send the device screen to home screen
|
Screenshot before executing SendText({HOME} |
Screenshot after executing SendText({HOME} |
|
|
|
client.sentText("{HOME}")client.sentText("{HOME}")client.sentText "{HOME}"Reportself.client.sentText("{HOME}")$client->sendText("{HOME}")